package com.grupoassa.utils;

public class XmlUtils {
	public static String removeSpecialCharacters(String inString) {
		if (inString == null)
			return null;

		StringBuilder newString = new StringBuilder();
		char ch;

		for (int i = 0; i < inString.length(); i++) {

			ch = inString.charAt(i);
			// remove any characters outside the valid UTF-8 range as well as
			// all control characters
			// except tabs and new lines
			if (ch < 0x00FD && ch > 0x001F) {
				newString.append(ch);
			}
		}
		return newString.toString();

	}
}
